home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntinc20 / pwd.h < prev    next >
C/C++ Source or Header  |  1992-05-15  |  950b  |  50 lines

  1. #ifndef _PWD_H
  2. #define _PWD_H
  3. /* file to describe password file fields */
  4.  
  5. #ifndef _COMPILER_H
  6. #include <compiler.h>
  7. #endif
  8.  
  9. #ifndef _TYPES_H
  10. #include <types.h>
  11. #endif
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. struct passwd {
  18.     char *pw_name;
  19.     char *pw_passwd;
  20.     uid_t pw_uid;
  21.     gid_t pw_gid;
  22.     char *pw_gecos;
  23.     char *pw_dir;
  24.     char *pw_shell;
  25. };
  26.  
  27. #define pw_comment    pw_gecos
  28.  
  29. __EXTERN struct passwd *getpwent __PROTO((void));
  30. __EXTERN struct passwd *getpwnam __PROTO((const char *));
  31.  
  32. #ifndef _POSIX_SOURCE
  33. __EXTERN void        setpwfile __PROTO((char *));
  34. # ifdef __MINT__
  35. __EXTERN struct passwd *getpwuid __PROTO((int));
  36. __EXTERN void        setpwent  __PROTO((void));
  37. __EXTERN void        endpwent  __PROTO((void));
  38. # else
  39. __EXTERN struct passwd *getpwuid __PROTO((uid_t));
  40. __EXTERN int        setpwent  __PROTO((void));
  41. __EXTERN int        endpwent  __PROTO((void));
  42. # endif
  43. #endif
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. #endif /* _PWD_H */
  50.